// 拼接返回结果的数据结构
export function loadPageQueryResult<T>(findAndCountRes: T, pageNum: number, pageSize: number) {
    const list = findAndCountRes[0];
    const totalSize = findAndCountRes[1];
    const totalPage = Math.ceil(totalSize / pageSize);
    return {
        list,
        pageNum,
        pageSize,
        totalSize,
        totalPage,
    };
}
